package com.njust.service;

import com.njust.common.ServerRespone;

import java.io.IOException;
import java.text.ParseException;
import java.util.Date;

/**
 * @author zjwpro@foxmail.com
 * @date 2018/3/8 下午4:21
 */
public interface TrainService {

    //实时信息查询
    ServerRespone realShow(String pre) throws ParseException;

    //返回所有实时的数据
    ServerRespone realShowall(String pre) throws ParseException;

    ServerRespone warn(Long trainOnlyid);

    ServerRespone todayLast10(Date pre,Date after);

    ServerRespone zhendongDetail(Long trainOnlyid);

    ServerRespone motorDetail(Long trainOnlyid);

    //列车详细数据
    ServerRespone showDetailByTrainOnlyId(Long trainOnlyid);
    /**
     * 新添加的三色灯
     */
    ServerRespone deviceState(Integer warnRank) throws IOException;

}
